$(function() {
	
	$(".a1s").click(function() {
		var obb=$(this);
		var typeid=obb.attr("data-tid");
	var shopid=$("#shopid").val();
	$.ajax({
		type:"GET",
		url:"togoodslist",
		data:{typeid:typeid,shopid:shopid},
		dataType:"json",
		success:function(data){
			$("#goodslist").html("");
		for(var i in data){
			$("#goodslist").append('<li><a class="linksGoods w" href=""><img class="pic" src="http://demodaojia.ecjia.com/content/uploads/images/201610/goods_img/617_G_1459128638678.jpg"><dl><dt>'+data[i].goodsname+'</dt><dd><label>￥'+data[i].price+'</label></dd></dl></a><div class="box" id="goods_617"><span class="reduce hide" data-toggle="remove-to-cart" rec_id="">减</span><label class="hide"></label><span class="add" data-toggle="add-to-cart" rec_id="" goods_id="617">加</span></div></li>')
		}
		
		},
		error:function(data){
			alert("对不起，删除失败");
		}
	});
	})
})